
<html>
  <head>

  </head>
  <script language="javascript">
  function create1(){
  	var radios = document.getElementsByName("rd");
  	for(var i=0;i<radios.length;i++){
  		if(radios[i].checked==true){
			setModel(radios[i].value);
		}
  	}
  }
  function setModel(cmodel){
  	var checks=document.getElementsByName("shotCheck");
  	if(navigator.appName=="Microsoft Internet Explorer"){
  		for(var i=0;i<checks.length;i++){
  			if(checks[i].checked==true){
				var a=checks[i].parentNode.nextSibling.nextSibling;
				a.innerHTML=cmodel;
  			}
  		}
  	}else{
  		for(var i=0;i<checks.length;i++){
  			if(checks[i].checked==true){
				var a=checks[i].parentNode.nextSibling.nextSibling.nextSibling.nextSibling;
				a.innerHTML=cmodel;
  			}
  		}
  	}
  }
  </script>
  
  
  <body >
    <table>
    <tr><td>
    	<table id="shots">
    	<tr>
    		<td></td>
    		<td></td>
    		<td>选定的模版</td>
    	</tr>
    	<tr>
    		<td id="a"><input type="checkbox" name="shotCheck" ></td>
    		<td id="e"></td>
    		<td id="1"></td>
    	</tr>
    	<tr>
    		<td id="b"><input type="checkbox" name="shotCheck" ></td>
    		<td id="f"></td>
    		<td id="2"></td>
    	</tr>
    	<tr>
    		<td id="c"><input type="checkbox" name="shotCheck" ></td>
    		<td id="g"></td>
    		<td id="3"></td>
    		<img src="../imagewang/ep.jpg" onclick="alert(this.width+'aaa'+this.height);">
    	</tr>
    	</table>

    </td><td>
    	<table>
    		<tr>
    			<td><input type="radio" id="" name="rd" value="aaa">aaa</td>
    		</tr>
    		<tr>
    			<td><input type="radio" id="" name="rd" value="bbb">bbb</td>
    		</tr>
    		<tr>
    			<td><input type="radio" id="" name="rd" value="ccc">ccc</td>
    		</tr>
    	<tr><td><input type="button" value="Create" onclick="create1();"></td></tr>
    	</table>
	</td></tr></table>
	
  </body>
  
  
  
</html>
